package edu.sctu.fengleilin.month06.day150602.RailWayStation;

/**
 * Created by user09 on 2015/6/2.
 */
public class DangerDeth {

    private String danger = "炸弹，枪，违禁物品";
    private PeopleAppbean peopleAppbean;

    public DangerDeth( PeopleAppbean peopleAppbean){
        this.peopleAppbean = peopleAppbean;
    }

    public boolean checkBag(){
          boolean is_danger = false;
        if (peopleAppbean.isBag()){
            if (danger.contains(peopleAppbean.getBagname())){
                is_danger = true;
            }else{
                is_danger = false;

            }

        }
        return is_danger;
    }
    public boolean checkWater(){
        boolean is_dangers = false;
        if (peopleAppbean.isWater()){
            if (danger.contains(peopleAppbean.getWatername())){
                is_dangers = true;
            }else{
                is_dangers = false;

            }

        }
        return is_dangers;
    }

}


